package com.wyh.service;


import com.wyh.common.response.PageInfo;
import com.wyh.entity.AdminBlackList;
import com.wyh.request.AdminBlackListRequest;

import java.util.List;

/**
 * 黑名单管理接口
 *
 * @author WangYuHang
 * @date 2024-03-03
 */
public interface IAdminBlackListService {


    /**
     * 用户1是否被用户2拉黑
     * @param userId1
     * @param userId2
     * @return
     */
    Boolean isBlack(String userId1,String userId2);
    /**
     * 新增
     *
     * @param param param
     * @return AdminBlackList
     */
    AdminBlackList add(AdminBlackListRequest param);

    /**
     * 删除
     *
     * @param id id
     * @return boolean
     */
    boolean delete(Integer id);

    /**
     * 批量删除
     *
     * @param ids ids
     * @return boolean
     */
    boolean deleteBatch(List<Integer> ids);

    /**
     * 更新
     *
     * @param param param
     * @return boolean
     */
    boolean update(AdminBlackListRequest param);

    /**
     * 查询单条数据，Specification模式
     *
     * @param id id
     * @return AdminBlackList
     */
    AdminBlackList getById(Integer id);

    /**
     * 查询分页数据
     *
     * @param param param
     * @return PageInfo<AdminBlackList>
     */
    PageInfo<AdminBlackList> pageList(AdminBlackListRequest param);


    /**
     * 查询所有数据
     *
     * @return List<AdminBlackList>
     */
    List<AdminBlackList> list(AdminBlackListRequest param);
}
